source 'https://cdn.cocoapods.org/'

platform :ios, '9.0'

install! 'cocoapods', :deterministic_uuids => false

inhibit_all_warnings!
#use_frameworks!

target 'WBDemo' do
  # use_frameworks!
  pod 'SHWeibo', path: '../'
#  pod 'Weibo_SDK', path: '../../Weibo_SDK/'
end

post_install do |installer|
#  # pod头文件引用问题设置
#  installer.pods_project.targets.each do |target|
#    target.build_configurations.each do |config|
##      if config.name == 'Debug'
#        config.build_settings['USER_HEADER_SEARCH_PATHS'] = '$(PODS_ROOT)/**'
##      end
#    end
#  end
#
#  # 修改工程的头文件引用问题
#  app_project = Xcodeproj::Project.open(Dir.glob('*.xcodeproj')[0])
#  # 主工程二进制重排设置
#  app_project.native_targets.each do |target|
#    if target.name == 'WBDemo'
#      target.build_configurations.each do |config|
##        if config.name == 'Debug'
#          config.build_settings['USER_HEADER_SEARCH_PATHS'] = '$(PODS_ROOT)/**'
##        end
#      end
#    end
#  end
#
#  app_project.save

end
